<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: hp
  Date: 2021/7/17
  Time: 11:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" isELIgnored="false" %>
<html>
<head>
    <title>用户列表</title>
</head>
<body>
    <form action="/list.mk" method="post">
        <table align="center" bgcolor="#6495ed" border="1px">
            <tr>
                <td>id</td>
                <td>name</td>
                <td>操作</td>
            </tr>
            <c:forEach items="${userList}" var="u">
                <tr>
                    <td>${u.id}</td>
                    <td>${u.name}</td>
                    <td>
                        <a href="preUpdateUser.mk?id=${u.id}">修改</a>
                        <a href="deleteUser.mk?id=${u.id}">删除</a>
                    </td>
                </tr>
            </c:forEach>
        </table>
        <a href="index.jsp">初始界面</a>
    </form>
</body>
</html>
